import Vue from 'vue'
import App from './App.vue'

import router from './router'
import store from './store'

Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App)
}).$mount('#app')
/*

编程式路由导航：
    跳转并传参(params参数)：@click="$router.push({name:'product',params:{userId:'100'}})
    跳转并传参(query参数)：@click="$router.push({path:'/discoverMusic',query:{keyword:'发现音乐'}})"
    跳转并传参(params参数)：@click="$router.replace({name:'product',params:{userId:'100'}})
    跳转并传参(query参数)：@click="$router.replace({path:'/discoverMusic',query:{keyword:'发现音乐'}})"
    接收：this.$route.query.keyword
    接收：this.$route.params.userId

*/